/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Tan_subsector implements Serializable {
	public Tan_subsector() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_TAN_SUBSECTOR_TAN_CURSOCU) {
			this.tan_cursocu = (orm.Tan_curso) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int su_id;
	
	private orm.Tan_curso tan_cursocu;
	
	private String su_descripcion;
	
	private void setSu_id(int value) {
		this.su_id = value;
	}
	
	public int getSu_id() {
		return su_id;
	}
	
	public int getORMID() {
		return getSu_id();
	}
	
	/**
	 * nombre del subsector
	 */
	public void setSu_descripcion(String value) {
		this.su_descripcion = value;
	}
	
	/**
	 * nombre del subsector
	 */
	public String getSu_descripcion() {
		return su_descripcion;
	}
	
	public void setTan_cursocu(orm.Tan_curso value) {
		if (tan_cursocu != null) {
			tan_cursocu.tan_subsector.remove(this);
		}
		if (value != null) {
			value.tan_subsector.add(this);
		}
	}
	
	public orm.Tan_curso getTan_cursocu() {
		return tan_cursocu;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tan_cursocu(orm.Tan_curso value) {
		this.tan_cursocu = value;
	}
	
	private orm.Tan_curso getORM_Tan_cursocu() {
		return tan_cursocu;
	}
	
	public String toString() {
		return String.valueOf(getSu_id());
	}
	
}
